package com.wsc.wisdomchina.activitity;

import android.app.Activity;
import android.os.Bundle;
import android.view.Window;
import android.widget.Button;

import com.wsc.wisdomchina.R;
import com.wsc.wisdomchina.view.MyCountTimer;

/**
 * Created by admin on 2017/10/25.
 */

public class CountDownTimeActivity extends Activity {
    private Button mNumber;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_count_down_time);
        mNumber = (Button) findViewById(R.id.tv_number);
        MyCountTimer myCountTimer = new MyCountTimer(4*1000, 1000, mNumber, ""){
            @Override
            public void onFinish() {
                super.onFinish();
                finish();
            }
        };
        myCountTimer.start();
    }
}
